import request from '@/utils/request'

// 查询药品类型列表
export function listMedicinetype(query) {
  return request({
    url: '/sysmanagement/medicinetype/list',
    method: 'get',
    params: query
  })
}

// 查询药品类型详细
export function getMedicinetype(id) {
  return request({
    url: '/sysmanagement/medicinetype/' + id,
    method: 'get'
  })
}

// 新增药品类型
export function addMedicinetype(data) {
  return request({
    url: '/sysmanagement/medicinetype',
    method: 'post',
    data: data
  })
}

// 修改药品类型
export function updateMedicinetype(data) {
  return request({
    url: '/sysmanagement/medicinetype',
    method: 'put',
    data: data
  })
}

// 删除药品类型
export function delMedicinetype(id) {
  return request({
    url: '/sysmanagement/medicinetype/' + id,
    method: 'delete'
  })
}
